package com.kidback.bbloc259.api;


import com.kidback.bbloc259.app.APPConst;
import com.kidback.bbloc259.app.KidApplication;
import com.kidback.bbloc259.app.provider.UserDataProvider;
import com.kidback.bbloc259.network.base.INetWorkConfig;
import com.kidback.bbloc259.util.PackageUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by meikai on 2020/06/04.
 */
public class BBNetConfig implements INetWorkConfig {

    @Override
    public String getAuthToken() {
        return "";
    }

    @Override
    public String getAppName() {
        return PackageUtils.getAppName(KidApplication.getInstance());
    }

    @Override
    public String getAppVersionName() {
        return PackageUtils.getAppVersionName(KidApplication.getInstance());
    }

    @Override
    public String getStatId() {
        return PackageUtils.getStatId();
    }

    @Override
    public String getAppVersionCode() {
        return PackageUtils.getAppVersionCode(KidApplication.getInstance());
    }

    @Override
    public String getESCSignKey() {
        return "98cadfc3f7736f4adccb69b6449d8c96";
    }

    @Override
    public String getChannel() {
        return PackageUtils.getChannel(KidApplication.getInstance());
    }

    @Override
    public boolean isDebug() {
        return false;
    }

    @Override
    public Host host() {
        return APPConst.host;
    }

    @Override
    public boolean escapeSign() {
        return false;
    }

    @Override
    public List<String> getHeaderKeyList() {
        List<String> keyList = new ArrayList<>();
        keyList.add("userId");
        return keyList;
    }

    @Override
    public List<String> getHeaderValueList() {
        List<String> valueList = new ArrayList<>();
        valueList.add(UserDataProvider.getInst().getUserId());
        return valueList;
    }

}